package com.xdf.xzymanagementsystem.config;

import com.xdf.xzymanagementsystem.service.LeakService;
import com.xdf.xzymanagementsystem.util.MybatisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Component
public class ApplicationRunnerImpl implements ApplicationRunner {
    @Autowired
    private LeakService leakService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("项目启动完毕！");
        leakService.pushStartedMsg();// 推送给管理员，通知系统启动完毕
    }


}
